@extends('admin.inc.base')
@section('content')
    <div class="panel panel-default">
        <div class="panel-heading">
            留言详情
        </div>
        <div class="panel-body">

                <div class="form-group">
                    <label for="">标题</label>
                    <span>{{ $content->name }}</span>
                </div>

                <div class="form-group">
                    <label for="">手机</label>
                    <span>{{ $content->mobile }}</span>
                </div>

                <div class="form-group">
                    <label for="">地址</label>
                    <span>{{ $content->address }}</span>
                </div>

                <div class="form-group">
                    <label for="">投资额</label>
                    <span>{{ $content->quota }}</span>
                </div>

                <div class="form-group">
                    <label for="">回访</label>
                    <span>{{ $content->visit }}</span>
                </div>

                <div class="form-group">
                    <label for="">留言信息</label>
                    <span>{{ $content->content }}</span>
                </div>

                <div class="form-group">
                    <label for="">留言时间</label>
                    <span>{{ $content->created_at }}</span>
                </div>

                <div><span class="btn btn-default btn-danger" onclick="window.history.back();">返回</span> <span class="btn btn-default btn-success"  id="switchStatus">切换处理状态</span></div>
                <script type="text/javascript">
                    $("#switchStatus").click(function(){
                        $.post("/administrator/message/changeStatus/{{$content->id}}",function(data){
                            alert(data.message);
                        },'JSON');
                    });
                </script>
        </div>
    </div>
@endsection

